package com.yaorange.nongjt.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

/**
 * 合格证管理对象 qualification_certificate
 * 
 * @author hzliu
 * @date 2025-09-23
 */
public class QualificationCertificate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键(ID_WORKER) */
    private String id;

    /** 用户注册表主键 */
    @Excel(name = "用户注册表主键")
    private String userId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品重量 */
    @Excel(name = "产品重量")
    private BigDecimal productWeight;

    /** 计量单位(字典:unit_type) */
    @Excel(name = "计量单位(字典:unit_type)")
    private String unit;

    /** 产地 */
    @Excel(name = "产地")
    private String produceAddress;

    /** 生产地 */
    @Excel(name = "生产地")
    private String productionPlace;

    /** 检测方式(字典:test_type) */
    @Excel(name = "检测方式(字典:test_type)")
    private String testType;

    /** 检验机构 */
    @Excel(name = "检验机构")
    private String testBy;

    /** 检测报告 */
    @Excel(name = "检测报告")
    private String testReport;

    /** 用户签名 */
    @Excel(name = "用户签名")
    private String userSignature;

    /** 合格证编号 */
    @Excel(name = "合格证编号")
    private String code;

    /** 二维码地址 */
    @Excel(name = "二维码地址")
    private String qrcode;

    /** 打印次数 */
    @Excel(name = "打印次数")
    private Long printNumber;

    /** 合格证类型(字典:qr_type) */
    @Excel(name = "合格证类型(字典:qr_type)")
    private String qrType;

    /** 是否同步到成都市(0:无需同步 1:需要同步 2:已同步) */
    @Excel(name = "是否同步到成都市(0:无需同步 1:需要同步 2:已同步)")
    private Integer isSync;

    /** 省平台追溯码 */
    @Excel(name = "省平台追溯码")
    private String traceCode;

    /** 省平台批次类型(0 农事活动，1 生产加工，默认0) */
    @Excel(name = "省平台批次类型(0 农事活动，1 生产加工，默认0)")
    private String batchType;

    /** 删除标记(0:删除,1:正常) */
    private Integer delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setProductWeight(BigDecimal productWeight) 
    {
        this.productWeight = productWeight;
    }

    public BigDecimal getProductWeight() 
    {
        return productWeight;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setProduceAddress(String produceAddress) 
    {
        this.produceAddress = produceAddress;
    }

    public String getProduceAddress() 
    {
        return produceAddress;
    }

    public void setProductionPlace(String productionPlace) 
    {
        this.productionPlace = productionPlace;
    }

    public String getProductionPlace() 
    {
        return productionPlace;
    }

    public void setTestType(String testType) 
    {
        this.testType = testType;
    }

    public String getTestType() 
    {
        return testType;
    }

    public void setTestBy(String testBy) 
    {
        this.testBy = testBy;
    }

    public String getTestBy() 
    {
        return testBy;
    }

    public void setTestReport(String testReport) 
    {
        this.testReport = testReport;
    }

    public String getTestReport() 
    {
        return testReport;
    }

    public void setUserSignature(String userSignature) 
    {
        this.userSignature = userSignature;
    }

    public String getUserSignature() 
    {
        return userSignature;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setQrcode(String qrcode) 
    {
        this.qrcode = qrcode;
    }

    public String getQrcode() 
    {
        return qrcode;
    }

    public void setPrintNumber(Long printNumber) 
    {
        this.printNumber = printNumber;
    }

    public Long getPrintNumber() 
    {
        return printNumber;
    }

    public void setQrType(String qrType) 
    {
        this.qrType = qrType;
    }

    public String getQrType() 
    {
        return qrType;
    }

    public void setIsSync(Integer isSync) 
    {
        this.isSync = isSync;
    }

    public Integer getIsSync() 
    {
        return isSync;
    }

    public void setTraceCode(String traceCode) 
    {
        this.traceCode = traceCode;
    }

    public String getTraceCode() 
    {
        return traceCode;
    }

    public void setBatchType(String batchType) 
    {
        this.batchType = batchType;
    }

    public String getBatchType() 
    {
        return batchType;
    }

    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("productName", getProductName())
            .append("productWeight", getProductWeight())
            .append("unit", getUnit())
            .append("produceAddress", getProduceAddress())
            .append("productionPlace", getProductionPlace())
            .append("testType", getTestType())
            .append("testBy", getTestBy())
            .append("testReport", getTestReport())
            .append("userSignature", getUserSignature())
            .append("code", getCode())
            .append("qrcode", getQrcode())
            .append("printNumber", getPrintNumber())
            .append("qrType", getQrType())
            .append("isSync", getIsSync())
            .append("traceCode", getTraceCode())
            .append("batchType", getBatchType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
